Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-validate version metadata during unembargo #1989

Merged
merged 2 commits into from
Aug 16, 2024

Conversation

jjnesbitt
Copy link
Member

This addresses what I believe to be the cause of dandi/helpdesk#158. Previously, when a dandiset was unembargo, we re-populated the version metadata but never validated it. This is in contrast to the normal flow of updating a version, which sets its status to PENDING and is eventually validated.

Now, this is performed inline as a part of unembargo.

@danlamanna Curious about your thoughts on my changes and additional test for validate_version_metadata. Previously, we assumed that versions with a status besides PENDING were passed into the function correctly, and were concurrently modified, changing the status. However, the function could easily be called mistakenly with a different version status, and so I think the log message should be updated to reflect that.

@kabilar
Copy link
Member

kabilar commented Aug 1, 2024

Thank you, Jake.

Also add test to check that versions validated with a status besides
`PENDING` are skipped
@jjnesbitt jjnesbitt merged commit 7bad420 into master Aug 16, 2024
11 checks passed
@jjnesbitt jjnesbitt deleted the unembargo-version-metadata branch August 16, 2024 18:14
@dandibot
Copy link
Member

🚀 PR was released in v0.3.94 🚀

@dandibot dandibot added the released This issue/pull request has been released. label Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants